package com.jy.readers.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jy.common.annotation.Excel;
import com.jy.common.core.domain.BaseEntity;

/**
 * 图书馆用户信息对象 readers
 * 
 * @author ruoyi
 * @date 2025-05-30
 */
public class Readers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID，唯一标识一个用户 */
    @Excel(name = "用户ID，唯一标识一个用户")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 电子邮箱，用于联系用户 */
    @Excel(name = "电子邮箱，用于联系用户")
    private String email;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 注册日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationDate;

    /** 用户状态，true表示活跃，false表示已停用 */
    @Excel(name = "用户状态，true表示活跃，false表示已停用")
    private Integer isActive;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setRegistrationDate(Date registrationDate) 
    {
        this.registrationDate = registrationDate;
    }

    public Date getRegistrationDate() 
    {
        return registrationDate;
    }

    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("email", getEmail())
            .append("phone", getPhone())
            .append("registrationDate", getRegistrationDate())
            .append("isActive", getIsActive())
            .toString();
    }
}
